package com.aspose.cells;

public class Color implements Cloneable {
   private int a;
   private final boolean b;
   private final boolean c;
   private String d = null;

   public Color() {
      this.a = 0;
      this.b = true;
      this.c = false;
      this.d = null;
   }

   private Color(boolean isEmpty, boolean isKnown) {
      this.b = isEmpty;
      this.c = isKnown;
   }

   public Color a() {
      Color var1 = new Color(this.b, this.c);
      var1.a = this.a;
      var1.d = this.d;
      return var1;
   }

   public boolean equals(Object obj) {
      if (obj == null) {
         return false;
      } else if (obj == this) {
         return true;
      } else if (obj instanceof Color) {
         Color var2 = (Color)obj;
         if (var2.b) {
            return this.b;
         } else if (this.b) {
            return false;
         } else {
            return (var2.a & 16777215) == (this.a & 16777215);
         }
      } else {
         return false;
      }
   }

   public int hashCode() {
      return Integer.valueOf(this.a).hashCode();
   }

   public static Color fromArgb(int argb) {
      return fromArgb(argb >> 24 & 255, argb >> 16 & 255, argb >> 8 & 255, argb & 255);
   }

   public static Color fromArgb(int red, int green, int blue) {
      return fromArgb(255, red, green, blue);
   }

   public static Color fromArgb(int alpha, int red, int green, int blue) {
      Color var4 = new Color(false, false);
      a(alpha, red, green, blue);
      var4.a = (alpha << 24) + (red << 16) + (green << 8) + blue;
      return var4;
   }

   public static Color a(int var0, Color var1) {
      return fromArgb(var0, var1.getR() & 255 & 255, var1.getG() & 255 & 255, var1.getB() & 255 & 255);
   }

   public static Color a(com.aspose.cells.b.a.b.zk var0) {
      Color var1 = new Color(false, true);
      var1.a = var0.b();
      var1.d = var0.name();
      return var1;
   }

   public static Color a(String var0) {
      return com.aspose.cells.b.a.b.zl.a(com.aspose.cells.b.a.b.zk.a(var0));
   }

   public static Color getEmpty() {
      return new Color();
   }

   public static Color getAliceBlue() {
      return com.aspose.cells.b.a.b.zl.a(com.aspose.cells.b.a.b.zk.C);
   }

   public static Color getAntiqueWhite() {
      return com.aspose.cells.b.a.b.zl.a(com.aspose.cells.b.a.b.zk.D);
   }

   public static Color getAzure() {
      return com.aspose.cells.b.a.b.zl.a(com.aspose.cells.b.a.b.zk.G);
   }

   public static Color getAquamarine() {
      return com.aspose.cells.b.a.b.zl.a(com.aspose.cells.b.a.b.zk.F);
   }

   public static Color getAqua() {
      return com.aspose.cells.b.a.b.zl.a(com.aspose.cells.b.a.b.zk.E);
   }

   public static Color getBeige() {
      return com.aspose.cells.b.a.b.zl.a(com.aspose.cells.b.a.b.zk.H);
   }

   public static Color getBisque() {
      return com.aspose.cells.b.a.b.zl.a(com.aspose.cells.b.a.b.zk.I);
   }

   public static Color getBlack() {
      return com.aspose.cells.b.a.b.zl.a(com.aspose.cells.b.a.b.zk.J);
   }

   public static Color getBlanchedAlmond() {
      return com.aspose.cells.b.a.b.zl.a(com.aspose.cells.b.a.b.zk.K);
   }

   public static Color getBlue() {
      return com.aspose.cells.b.a.b.zl.a(com.aspose.cells.b.a.b.zk.L);
   }

   public static Color getBlueViolet() {
      return com.aspose.cells.b.a.b.zl.a(com.aspose.cells.b.a.b.zk.M);
   }

   public static Color getBrown() {
      return com.aspose.cells.b.a.b.zl.a(com.aspose.cells.b.a.b.zk.N);
   }

   public static Color getCadetBlue() {
      return com.aspose.cells.b.a.b.zl.a(com.aspose.cells.b.a.b.zk.P);
   }

   public static Color getBurlyWood() {
      return com.aspose.cells.b.a.b.zl.a(com.aspose.cells.b.a.b.zk.O);
   }

   public static Color getChartreuse() {
      return com.aspose.cells.b.a.b.zl.a(com.aspose.cells.b.a.b.zk.Q);
   }

   public static Color getChocolate() {
      return com.aspose.cells.b.a.b.zl.a(com.aspose.cells.b.a.b.zk.R);
   }

   public static Color getCoral() {
      return com.aspose.cells.b.a.b.zl.a(com.aspose.cells.b.a.b.zk.S);
   }

   public static Color getCornflowerBlue() {
      return com.aspose.cells.b.a.b.zl.a(com.aspose.cells.b.a.b.zk.T);
   }

   public static Color getCornsilk() {
      return com.aspose.cells.b.a.b.zl.a(com.aspose.cells.b.a.b.zk.U);
   }

   public static Color getCrimson() {
      return com.aspose.cells.b.a.b.zl.a(com.aspose.cells.b.a.b.zk.V);
   }

   public static Color getCyan() {
      return com.aspose.cells.b.a.b.zl.a(com.aspose.cells.b.a.b.zk.W);
   }

   public static Color getDarkBlue() {
      return com.aspose.cells.b.a.b.zl.a(com.aspose.cells.b.a.b.zk.X);
   }

   public static Color getDarkCyan() {
      return com.aspose.cells.b.a.b.zl.a(com.aspose.cells.b.a.b.zk.Y);
   }

   public static Color getDarkGoldenrod() {
      return com.aspose.cells.b.a.b.zl.a(com.aspose.cells.b.a.b.zk.Z);
   }

   public static Color getDarkGray() {
      return com.aspose.cells.b.a.b.zl.a(com.aspose.cells.b.a.b.zk.aa);
   }

   public static Color getDarkGreen() {
      return com.aspose.cells.b.a.b.zl.a(com.aspose.cells.b.a.b.zk.ab);
   }

   public static Color getDarkKhaki() {
      return com.aspose.cells.b.a.b.zl.a(com.aspose.cells.b.a.b.zk.ac);
   }

   public static Color getDarkMagenta() {
      return com.aspose.cells.b.a.b.zl.a(com.aspose.cells.b.a.b.zk.ad);
   }

   public static Color getDarkOliveGreen() {
      return com.aspose.cells.b.a.b.zl.a(com.aspose.cells.b.a.b.zk.ae);
   }

   public static Color getDarkOrange() {
      return com.aspose.cells.b.a.b.zl.a(com.aspose.cells.b.a.b.zk.af);
   }

   public static Color getDarkOrchid() {
      return com.aspose.cells.b.a.b.zl.a(com.aspose.cells.b.a.b.zk.ag);
   }

   public static Color getDarkRed() {
      return com.aspose.cells.b.a.b.zl.a(com.aspose.cells.b.a.b.zk.ah);
   }

   public static Color getDarkSalmon() {
      return com.aspose.cells.b.a.b.zl.a(com.aspose.cells.b.a.b.zk.ai);
   }

   public static Color getDarkSeaGreen() {
      return com.aspose.cells.b.a.b.zl.a(com.aspose.cells.b.a.b.zk.aj);
   }

   public static Color getDarkSlateBlue() {
      return com.aspose.cells.b.a.b.zl.a(com.aspose.cells.b.a.b.zk.ak);
   }

   public static Color getDarkSlateGray() {
      return com.aspose.cells.b.a.b.zl.a(com.aspose.cells.b.a.b.zk.al);
   }

   public static Color getDarkTurquoise() {
      return com.aspose.cells.b.a.b.zl.a(com.aspose.cells.b.a.b.zk.am);
   }

   public static Color getDarkViolet() {
      return com.aspose.cells.b.a.b.zl.a(com.aspose.cells.b.a.b.zk.an);
   }

   public static Color getDeepPink() {
      return com.aspose.cells.b.a.b.zl.a(com.aspose.cells.b.a.b.zk.ao);
   }

   public static Color getDeepSkyBlue() {
      return com.aspose.cells.b.a.b.zl.a(com.aspose.cells.b.a.b.zk.ap);
   }

   public static Color getDimGray() {
      return com.aspose.cells.b.a.b.zl.a(com.aspose.cells.b.a.b.zk.aq);
   }

   public static Color getDodgerBlue() {
      return com.aspose.cells.b.a.b.zl.a(com.aspose.cells.b.a.b.zk.ar);
   }

   public static Color getFirebrick() {
      return com.aspose.cells.b.a.b.zl.a(com.aspose.cells.b.a.b.zk.as);
   }

   public static Color getFloralWhite() {
      return com.aspose.cells.b.a.b.zl.a(com.aspose.cells.b.a.b.zk.at);
   }

   public static Color getForestGreen() {
      return com.aspose.cells.b.a.b.zl.a(com.aspose.cells.b.a.b.zk.au);
   }

   public static Color getFuchsia() {
      return com.aspose.cells.b.a.b.zl.a(com.aspose.cells.b.a.b.zk.av);
   }

   public static Color getGainsboro() {
      return com.aspose.cells.b.a.b.zl.a(com.aspose.cells.b.a.b.zk.aw);
   }

   public static Color getGhostWhite() {
      return com.aspose.cells.b.a.b.zl.a(com.aspose.cells.b.a.b.zk.ax);
   }

   public static Color getGold() {
      return com.aspose.cells.b.a.b.zl.a(com.aspose.cells.b.a.b.zk.ay);
   }

   public static Color getGoldenrod() {
      return com.aspose.cells.b.a.b.zl.a(com.aspose.cells.b.a.b.zk.az);
   }

   public static Color getGray() {
      return com.aspose.cells.b.a.b.zl.a(com.aspose.cells.b.a.b.zk.aA);
   }

   public static Color getGreen() {
      return com.aspose.cells.b.a.b.zl.a(com.aspose.cells.b.a.b.zk.aB);
   }

   public static Color getGreenYellow() {
      return com.aspose.cells.b.a.b.zl.a(com.aspose.cells.b.a.b.zk.aC);
   }

   public static Color getHoneydew() {
      return com.aspose.cells.b.a.b.zl.a(com.aspose.cells.b.a.b.zk.aD);
   }

   public static Color getHotPink() {
      return com.aspose.cells.b.a.b.zl.a(com.aspose.cells.b.a.b.zk.aE);
   }

   public static Color getIndianRed() {
      return com.aspose.cells.b.a.b.zl.a(com.aspose.cells.b.a.b.zk.aF);
   }

   public static Color getIndigo() {
      return com.aspose.cells.b.a.b.zl.a(com.aspose.cells.b.a.b.zk.aG);
   }

   public static Color getIvory() {
      return com.aspose.cells.b.a.b.zl.a(com.aspose.cells.b.a.b.zk.aH);
   }

   public static Color getKhaki() {
      return com.aspose.cells.b.a.b.zl.a(com.aspose.cells.b.a.b.zk.aI);
   }

   public static Color getLavender() {
      return com.aspose.cells.b.a.b.zl.a(com.aspose.cells.b.a.b.zk.aJ);
   }

   public static Color getLavenderBlush() {
      return com.aspose.cells.b.a.b.zl.a(com.aspose.cells.b.a.b.zk.aK);
   }

   public static Color getLawnGreen() {
      return com.aspose.cells.b.a.b.zl.a(com.aspose.cells.b.a.b.zk.aL);
   }

   public static Color getLemonChiffon() {
      return com.aspose.cells.b.a.b.zl.a(com.aspose.cells.b.a.b.zk.aM);
   }

   public static Color getLightBlue() {
      return com.aspose.cells.b.a.b.zl.a(com.aspose.cells.b.a.b.zk.aN);
   }

   public static Color getLightCoral() {
      return com.aspose.cells.b.a.b.zl.a(com.aspose.cells.b.a.b.zk.aO);
   }

   public static Color getLightCyan() {
      return com.aspose.cells.b.a.b.zl.a(com.aspose.cells.b.a.b.zk.aP);
   }

   public static Color getLightGoldenrodYellow() {
      return com.aspose.cells.b.a.b.zl.a(com.aspose.cells.b.a.b.zk.aQ);
   }

   public static Color getLightGray() {
      return com.aspose.cells.b.a.b.zl.a(com.aspose.cells.b.a.b.zk.aR);
   }

   public static Color getLightGreen() {
      return com.aspose.cells.b.a.b.zl.a(com.aspose.cells.b.a.b.zk.aS);
   }

   public static Color getLightPink() {
      return com.aspose.cells.b.a.b.zl.a(com.aspose.cells.b.a.b.zk.aT);
   }

   public static Color getLightSalmon() {
      return com.aspose.cells.b.a.b.zl.a(com.aspose.cells.b.a.b.zk.aU);
   }

   public static Color getLightSeaGreen() {
      return com.aspose.cells.b.a.b.zl.a(com.aspose.cells.b.a.b.zk.aV);
   }

   public static Color getLightSkyBlue() {
      return com.aspose.cells.b.a.b.zl.a(com.aspose.cells.b.a.b.zk.aW);
   }

   public static Color getLightSlateGray() {
      return com.aspose.cells.b.a.b.zl.a(com.aspose.cells.b.a.b.zk.aX);
   }

   public static Color getLightSteelBlue() {
      return com.aspose.cells.b.a.b.zl.a(com.aspose.cells.b.a.b.zk.aY);
   }

   public static Color getLightYellow() {
      return com.aspose.cells.b.a.b.zl.a(com.aspose.cells.b.a.b.zk.aZ);
   }

   public static Color getLime() {
      return com.aspose.cells.b.a.b.zl.a(com.aspose.cells.b.a.b.zk.ba);
   }

   public static Color getLimeGreen() {
      return com.aspose.cells.b.a.b.zl.a(com.aspose.cells.b.a.b.zk.bb);
   }

   public static Color getLinen() {
      return com.aspose.cells.b.a.b.zl.a(com.aspose.cells.b.a.b.zk.bc);
   }

   public static Color getMagenta() {
      return com.aspose.cells.b.a.b.zl.a(com.aspose.cells.b.a.b.zk.bd);
   }

   public static Color getMaroon() {
      return com.aspose.cells.b.a.b.zl.a(com.aspose.cells.b.a.b.zk.be);
   }

   public static Color getMediumAquamarine() {
      return com.aspose.cells.b.a.b.zl.a(com.aspose.cells.b.a.b.zk.bf);
   }

   public static Color getMediumBlue() {
      return com.aspose.cells.b.a.b.zl.a(com.aspose.cells.b.a.b.zk.bg);
   }

   public static Color getMediumOrchid() {
      return com.aspose.cells.b.a.b.zl.a(com.aspose.cells.b.a.b.zk.bh);
   }

   public static Color getMediumPurple() {
      return com.aspose.cells.b.a.b.zl.a(com.aspose.cells.b.a.b.zk.bi);
   }

   public static Color getMediumSeaGreen() {
      return com.aspose.cells.b.a.b.zl.a(com.aspose.cells.b.a.b.zk.bj);
   }

   public static Color getMediumSlateBlue() {
      return com.aspose.cells.b.a.b.zl.a(com.aspose.cells.b.a.b.zk.bk);
   }

   public static Color getMediumSpringGreen() {
      return com.aspose.cells.b.a.b.zl.a(com.aspose.cells.b.a.b.zk.bl);
   }

   public static Color getMediumTurquoise() {
      return com.aspose.cells.b.a.b.zl.a(com.aspose.cells.b.a.b.zk.bm);
   }

   public static Color getMediumVioletRed() {
      return com.aspose.cells.b.a.b.zl.a(com.aspose.cells.b.a.b.zk.bn);
   }

   public static Color getMidnightBlue() {
      return com.aspose.cells.b.a.b.zl.a(com.aspose.cells.b.a.b.zk.bo);
   }

   public static Color getMintCream() {
      return com.aspose.cells.b.a.b.zl.a(com.aspose.cells.b.a.b.zk.bp);
   }

   public static Color getMistyRose() {
      return com.aspose.cells.b.a.b.zl.a(com.aspose.cells.b.a.b.zk.bq);
   }

   public static Color getMoccasin() {
      return com.aspose.cells.b.a.b.zl.a(com.aspose.cells.b.a.b.zk.br);
   }

   public static Color getNavajoWhite() {
      return com.aspose.cells.b.a.b.zl.a(com.aspose.cells.b.a.b.zk.bs);
   }

   public static Color getNavy() {
      return com.aspose.cells.b.a.b.zl.a(com.aspose.cells.b.a.b.zk.bt);
   }

   public static Color getOldLace() {
      return com.aspose.cells.b.a.b.zl.a(com.aspose.cells.b.a.b.zk.bu);
   }

   public static Color getOlive() {
      return com.aspose.cells.b.a.b.zl.a(com.aspose.cells.b.a.b.zk.bv);
   }

   public static Color getOliveDrab() {
      return com.aspose.cells.b.a.b.zl.a(com.aspose.cells.b.a.b.zk.bw);
   }

   public static Color getOrange() {
      return com.aspose.cells.b.a.b.zl.a(com.aspose.cells.b.a.b.zk.bx);
   }

   public static Color getOrangeRed() {
      return com.aspose.cells.b.a.b.zl.a(com.aspose.cells.b.a.b.zk.by);
   }

   public static Color getOrchid() {
      return com.aspose.cells.b.a.b.zl.a(com.aspose.cells.b.a.b.zk.bz);
   }

   public static Color getPaleGoldenrod() {
      return com.aspose.cells.b.a.b.zl.a(com.aspose.cells.b.a.b.zk.bA);
   }

   public static Color getPaleGreen() {
      return com.aspose.cells.b.a.b.zl.a(com.aspose.cells.b.a.b.zk.bB);
   }

   public static Color getPaleTurquoise() {
      return com.aspose.cells.b.a.b.zl.a(com.aspose.cells.b.a.b.zk.bC);
   }

   public static Color getPaleVioletRed() {
      return com.aspose.cells.b.a.b.zl.a(com.aspose.cells.b.a.b.zk.bD);
   }

   public static Color getPapayaWhip() {
      return com.aspose.cells.b.a.b.zl.a(com.aspose.cells.b.a.b.zk.bE);
   }

   public static Color getPeachPuff() {
      return com.aspose.cells.b.a.b.zl.a(com.aspose.cells.b.a.b.zk.bF);
   }

   public static Color getPeru() {
      return com.aspose.cells.b.a.b.zl.a(com.aspose.cells.b.a.b.zk.bG);
   }

   public static Color getPink() {
      return com.aspose.cells.b.a.b.zl.a(com.aspose.cells.b.a.b.zk.bH);
   }

   public static Color getPlum() {
      return com.aspose.cells.b.a.b.zl.a(com.aspose.cells.b.a.b.zk.bI);
   }

   public static Color getPowderBlue() {
      return com.aspose.cells.b.a.b.zl.a(com.aspose.cells.b.a.b.zk.bJ);
   }

   public static Color getPurple() {
      return com.aspose.cells.b.a.b.zl.a(com.aspose.cells.b.a.b.zk.bK);
   }

   public static Color getRed() {
      return com.aspose.cells.b.a.b.zl.a(com.aspose.cells.b.a.b.zk.bL);
   }

   public static Color getRosyBrown() {
      return com.aspose.cells.b.a.b.zl.a(com.aspose.cells.b.a.b.zk.bM);
   }

   public static Color getRoyalBlue() {
      return com.aspose.cells.b.a.b.zl.a(com.aspose.cells.b.a.b.zk.bN);
   }

   public static Color getSaddleBrown() {
      return com.aspose.cells.b.a.b.zl.a(com.aspose.cells.b.a.b.zk.bO);
   }

   public static Color getSalmon() {
      return com.aspose.cells.b.a.b.zl.a(com.aspose.cells.b.a.b.zk.bP);
   }

   public static Color getSandyBrown() {
      return com.aspose.cells.b.a.b.zl.a(com.aspose.cells.b.a.b.zk.bQ);
   }

   public static Color getSeaGreen() {
      return com.aspose.cells.b.a.b.zl.a(com.aspose.cells.b.a.b.zk.bR);
   }

   public static Color getSeaShell() {
      return com.aspose.cells.b.a.b.zl.a(com.aspose.cells.b.a.b.zk.bS);
   }

   public static Color getSienna() {
      return com.aspose.cells.b.a.b.zl.a(com.aspose.cells.b.a.b.zk.bT);
   }

   public static Color getSilver() {
      return com.aspose.cells.b.a.b.zl.a(com.aspose.cells.b.a.b.zk.bU);
   }

   public static Color getSkyBlue() {
      return com.aspose.cells.b.a.b.zl.a(com.aspose.cells.b.a.b.zk.bV);
   }

   public static Color getSlateBlue() {
      return com.aspose.cells.b.a.b.zl.a(com.aspose.cells.b.a.b.zk.bW);
   }

   public static Color getSlateGray() {
      return com.aspose.cells.b.a.b.zl.a(com.aspose.cells.b.a.b.zk.bX);
   }

   public static Color getSnow() {
      return com.aspose.cells.b.a.b.zl.a(com.aspose.cells.b.a.b.zk.bY);
   }

   public static Color getSpringGreen() {
      return com.aspose.cells.b.a.b.zl.a(com.aspose.cells.b.a.b.zk.bZ);
   }

   public static Color getSteelBlue() {
      return com.aspose.cells.b.a.b.zl.a(com.aspose.cells.b.a.b.zk.ca);
   }

   public static Color getTan() {
      return com.aspose.cells.b.a.b.zl.a(com.aspose.cells.b.a.b.zk.cb);
   }

   public static Color getTeal() {
      return com.aspose.cells.b.a.b.zl.a(com.aspose.cells.b.a.b.zk.cc);
   }

   public static Color getThistle() {
      return com.aspose.cells.b.a.b.zl.a(com.aspose.cells.b.a.b.zk.cd);
   }

   public static Color getTomato() {
      return com.aspose.cells.b.a.b.zl.a(com.aspose.cells.b.a.b.zk.ce);
   }

   public static Color getTransparent() {
      return com.aspose.cells.b.a.b.zl.a(com.aspose.cells.b.a.b.zk.B);
   }

   public static Color getTurquoise() {
      return com.aspose.cells.b.a.b.zl.a(com.aspose.cells.b.a.b.zk.cf);
   }

   public static Color getViolet() {
      return com.aspose.cells.b.a.b.zl.a(com.aspose.cells.b.a.b.zk.cg);
   }

   public static Color getWheat() {
      return com.aspose.cells.b.a.b.zl.a(com.aspose.cells.b.a.b.zk.ch);
   }

   public static Color getWhite() {
      return com.aspose.cells.b.a.b.zl.a(com.aspose.cells.b.a.b.zk.ci);
   }

   public static Color getWhiteSmoke() {
      return com.aspose.cells.b.a.b.zl.a(com.aspose.cells.b.a.b.zk.cj);
   }

   public static Color getYellow() {
      return com.aspose.cells.b.a.b.zl.a(com.aspose.cells.b.a.b.zk.ck);
   }

   public static Color getYellowGreen() {
      return com.aspose.cells.b.a.b.zl.a(com.aspose.cells.b.a.b.zk.cl);
   }

   public final byte getA() {
      return (byte)(this.a >> 24 & 255);
   }

   public final byte getR() {
      return (byte)(this.a >> 16 & 255);
   }

   public final byte getG() {
      return (byte)(this.a >> 8 & 255);
   }

   public final byte getB() {
      return (byte)(this.a & 255);
   }

   public float b() {
      int var1 = Math.min(this.getR() & 255, Math.min(this.getG() & 255, this.getB() & 255));
      int var2 = Math.max(this.getR() & 255, Math.max(this.getG() & 255, this.getB() & 255));
      return (float)(var2 + var1) / 510.0F;
   }

   public boolean isEmpty() {
      return this.b;
   }

   public String c() {
      return this.d;
   }

   public int toArgb() {
      return this.a;
   }

   public java.awt.Color d() {
      return new java.awt.Color(this.getR() & 255, this.getG() & 255, this.getB() & 255, this.getA() & 255);
   }

   private static void a(int var0, int var1, int var2, int var3) {
      if (var0 <= 255 && var0 >= 0) {
         a(var1, var2, var3);
      } else {
         throw a(var0, "alpha");
      }
   }

   private static void a(int var0, int var1, int var2) {
      if (var0 <= 255 && var0 >= 0) {
         if (var1 <= 255 && var1 >= 0) {
            if (var2 > 255 || var2 < 0) {
               throw a(var2, "blue");
            }
         } else {
            throw a(var1, "green");
         }
      } else {
         throw a(var0, "red");
      }
   }

   private static IllegalArgumentException a(int var0, String var1) {
      String var2 = String.format("%1$d is not a valid value for '%2$s'. '%2$s' should be greater or equal to 0 and less than or equal to 255.", var0, var1);
      return new IllegalArgumentException(var2);
   }
}
